<?php

namespace App\Services\spider;

class ParseResult
{
    public bool $success = false;

    public bool $ignore=false;//如果success=false,是否需要忽略该链接
    public array $data = [];
    public string $error;

    public static function of($success = false, array $data = []): ParseResult
    {
        $item = new ParseResult();
        $item->success = $success;
        $item->data = $data;
        return $item;

    }

}